package de.unidue.langtech.teaching.pp.example.pipeline;

import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.SimplePipeline;

import de.unidue.langtech.teaching.pp.example.Evaluator;
import de.unidue.langtech.teaching.pp.example.MyBaseline;
import de.unidue.langtech.teaching.pp.example.Reader;

/* This Pipeline is important for our Reader, Baseline and Evaluator. 
 * Sentence File with 8000 Sentence
 */

public class BasicPipeline
{

    public static void main(String[] args)
        throws Exception
    {
        SimplePipeline.runPipeline(
                CollectionReaderFactory.createReader(
                        Reader.class,
                        Reader.PARAM_INPUT_FILE, "src/test/resources/test/Sentence.txt"
                ),
                AnalysisEngineFactory.createEngineDescription(MyBaseline.class),
                AnalysisEngineFactory.createEngineDescription(Evaluator.class)
        );
    }
}

